/* 来源于 assets/style/common.css */

/* 滚动条样式 */

::-webkit-scrollbar {
    width: 8px;
    height: 12px;
}

::-webkit-scrollbar-thumb {
    border-radius: 1em;
    background-color: rgba(50, 50, 50, 0.3);
}

::-webkit-scrollbar-track {
    border-radius: 1em;
    background-color: rgba(50, 50, 50, 0.1);
}

/* 通用 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

#app {
    width: 100%;
    height: 100%;
}

/* 盒子 */

.box-full {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.box-border {
    box-sizing: border-box;
}

/* 垂直 Flex 布局 */

.flex-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden !important;
}

.flex-col > .flex-col-fixed {
    flex-shrink: 0;
}

.flex-col > .flex-col-auto {
    flex: 1;
    height: 100%;
    overflow: auto;
}

/* 水平 Flex 布局 */

.flex-row {
    display: flex;
    width: 100%;
    overflow: hidden !important;
}

.flex-row > .flex-row-fixed {
    flex-shrink: 0;
}

.flex-row > .flex-row-auto {
    flex: 1;
    width: 100%;
    overflow: auto;
}

.flex-row-center {
    display: flex;
    align-items: center;
}

.flex-row-center-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-row-center-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 宽、高 */

.w-full {
    width: 100%;
}

.w-num-150 {
    width: 150px;
}

.w-num-200 {
    width: 200px;
}

.w-num-270 {
    width: 270px;
}

.w-num-300 {
    width: 300px;
}

.w-num-400 {
    width: 400px;
}

.w-num-600 {
    width: 600px;
}

.w-num-750 {
    width: 750px;
}

.w-num-850 {
    width: 850px;
}

.h-full {
    height: 100%;
}

.h-num-32 {
    height: 32px;
}

.h-num-400 {
    height: 400px;
}

/* 间隔、区间 */

.m-l-8 {
    margin-left: 8px;
}

.m-l-16 {
    margin-left: 16px;
}

.m-r-8 {
    margin-right: 8px;
}

.m-r-24 {
    margin-right: 24px;
}

.m-t-8 {
    margin-top: 8px;
}

.m-t-16 {
    margin-top: 16px;
}

.m-b-8 {
    margin-bottom: 8px;
}

.p-8 {
    padding: 8px;
}

.p-t-8 {
    padding-top: 8px;
}
.p-b-8 {
    padding-bottom: 8px;
}

/* 内容偏移 */

.text-right {
    text-align: right;
}

/* 字体颜色 */

.color-danger {
    color: #f56c6c;
}

.color-success {
    color: #67c23a;
}

.color-gray {
    color: gray;
}

/* 行高 */

.line-height-1 {
    line-height: 1;
}

/* hover */

.hover-text-underline:hover {
    text-decoration-line: underline;
}

.hover-pointer {
    cursor: pointer;
}

/* 文本处理 */

.no-placeholder input::placeholder {
    color: transparent;
}

.text-wrap {
    white-space: pre-wrap;
}
